import HttpRequest from "./index";

function search(query: string[]) {
    let queryText = query.join(" ");
    return HttpRequest({
        url: "/bingSearchAPI/search",
        method: "get",
        params: {
            q: queryText[0],
        },
    });
}

export { search };
